package com.msw.axon.dao;

import com.msw.axon.model.single.Customer;
import org.springframework.stereotype.Repository;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;


@Repository
public class CustomerDao {
    @PersistenceContext
    private EntityManager entityManager;


    public void saveCustomer(Customer customer) {
        entityManager.persist(customer);
    }



}
